package com.bfmet.entity;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

import com.bfmet.common.base.EntityBase;

@Entity
@Table(name="BFMET_NEWS")
public class News extends EntityBase {

	private static final long serialVersionUID = -4836928102323139898L;
	private String content;
	private String imageUrl;
	@Enumerated(EnumType.STRING)
	private Type type;

	public enum Type {
		NEWS, POLICY, INDUSTRY,HOT
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public Type getType() {
		return type;
	}

	public void setType(Type type) {
		this.type = type;
	}
}
